<?php
// +----------------------------------------------------------------------
// | 后台用户管理
// +----------------------------------------------------------------------
namespace app\common\model;
use think\Model;

class UserLevel extends Model
{
	use \base\model\ModelTrait;
    
    //关联会员表
	public function userInfo(){
        return $this->hasOne('user','id','uid');
    }
    
    //关联商品表
	public function goodsInfo(){
        return $this->hasOne('goods','id','goods_id');
    }
    
     //关联会员表
	public function userLevel(){
        return $this->hasOne('user_level','level','specified_level');
    }
	
	
}
